package com.itheima.mapper.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.domian.Category;
import com.itheima.domian.Dish;
import com.itheima.domian.Employees;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 12441
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
//    @Insert("INSERT INTO category ( id, type,name, sort,create_time, " +
//            "update_time, create_user, update_user)values (null,#{type},#{name},#{sort},#{createTime}," +
//            "#{updateTime},#{createUser},#{updateUser})")
//    Integer addCateGory(Category category);

    @Select("select * from category where type=#{type}")
    List<Category> selectByType(Integer type);



}
